<?php

namespace App\Library\Requests\ShopProductSpec;

use App\Library\Rules\ShopProductSpecNumberRule;

class ShopProductSpecEditRequest extends ShopProductSpecAddRequest
{
    public function rules(): array
    {
        return array_merge(parent::rules(), [
            $this->No => ['required', 'string', 'size:20', 'regex:' . __('com.numReg'), new ShopProductSpecNumberRule],
        ]);
    }
}
